package com.membership.cloud.jpa.repository;

import com.membership.cloud.jpa.domain.StoreUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by hiephn on 2014/06/28.
 */
public interface StoreUserRepository extends JpaRepository<StoreUser, Integer> {

    Page<StoreUser> findByNameLikeOrFullNameLike(String name, String fullName, Pageable pageable);

    StoreUser findByNameAndPassword(String name, String password);
}
